﻿@model List<CNav.Domain.Admin.FormConfiguration>

@{
    ViewBag.Title = "Form Configuration";
}

<div>
    <table id="box-table-a">
        <tr>
            <th>Complaint Stage</th>
            <th>More Information - Form</th>
        </tr>
        @for (int i = 0; i < Model.Count(); i++)
        {
            <tr>
                <td>@Html.DisplayFor(m => m[i].Stage) </td>
                <td>@Html.DisplayFor(m => m[i].FormName)</td>
            </tr>
        }
    </table>
    
    @if (Model.Any())
    {
        <ol>
              <li class="liCentre">
                <input type="button" id="editButton" value="Edit" />
            </li>

        </ol>
    }
</div>
<script type="text/javascript">
    $(document).ready(function () {

        var cc = new CaseCentre();
        cc.BindCancel('#editButton', '@Url.Content("~/FormConfig/Edit")');
    });
</script>